import request from '/@/utils/request';

// 查询行所显示的城市列表
export function listCity(query?: Object) {
  return request({
    url: '/module/titleMenu/section/city/list',
    method: 'get',
    params: query
  })
}

// 查询行所显示的城市详细
export function getCity(id?: number) {
  return request({
    url: '/module/titleMenu/section/city/' + id,
    method: 'get'
  })
}

// 新增行所显示的城市
export function addCity(data?: Object) {
  return request({
    url: '/module/titleMenu/section/city',
    method: 'post',
    data
  })
}

// 修改行所显示的城市
export function updateCity(data?: Object) {
  return request({
    url: '/module/titleMenu/section/city',
    method: 'put',
    data
  })
}

// 删除行所显示的城市
export function delCity(id?: number) {
  return request({
    url: '/module/titleMenu/section/city/' + id,
    method: 'delete'
  })
}

// 导出行所显示的城市
export function exportCity(query?: Object) {
  return request({
    url: '/module/titleMenu/section/city/export',
    method: 'get',
    params: query
  })
}
